import http from "@/utils/http"

export default {
    prefixUrl: "/maparea",
    role: {
        query: "GET:/maparea",
        create: "POST:/maparea",
        select: "GET:/maparea/:id",
        update: "PUT:/maparea/:id",
        delete: "DELETE:/maparea/:id"
    },
    query(params) {
        return http.get(this.prefixUrl, params)
    },
    create(params) {
        return http.post(this.prefixUrl, params)
    },
    select(id) {
        return http.get(this.prefixUrl + "/" + id)
    },
    update(id, params) {
        return http.put(this.prefixUrl + "/" + id, params)
    },
    delete(id) {
        return http.delete(this.prefixUrl + "/" + id)
    },
}